/*
 * @Date: 2022-12-05 14:11:36
 * @LastEditors: Jason Chen
 * @LastEditTime: 2022-12-05 16:15:34
 * @FilePath: /changeDbPassword/server/plugin/db/model/model.go
 */

package model

type DatabaseModel struct {
	DbType       DbTypeEnum `json:"type"  gorm:"column:type;comment:数据库类型"`
	DbHost       string     `json:"host" gorm:"column:host;comment:host"`
	DbPort       uint       `json:"port" gorm:"column:port;comment:端口"`
	DbUserName   string     `json:"userName" gorm:"column:user_name;comment:用户名"`
	Password     string     `json:"password" gorm:"column:password;comment:密码"`
	InstanceName string     `json:"instanceName" gorm:"column:instance_name;comment:实例名称"`
}

func (DatabaseModel) TableName() string {
	return "db_databases"
}
